package com.ncloud.monitor.wrapper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ncloud.monitor.inter.MonitorInterface;
import com.ncloud.monitor.wrapper.service.ZabbixMonitor;

@Service
public class MonitorWrapper implements MonitorInterface {
	
	@Autowired
	private ZabbixMonitor zabbix;
	
	@Override
	public List<Map<String, Object>> getUsedRatioByHostName(String interType,String hostName) throws Exception{
		List<Map<String,Object>> list = new ArrayList<Map<String,Object>>();
		if("zabbix".equals(interType)){
			list= zabbix.getUsedRatioByHostName(hostName);
		}
		return list;
	}

	@Override
	public List<Map<String, Object>> getUsedRatioByHostManageIp(String interType,String manageIp) throws Exception {
		List<Map<String,Object>> list = new ArrayList<Map<String,Object>>();
		if("zabbix".equals(interType)){
			list= zabbix.getUsedRatioByHostManageIp(manageIp);
		}
		return list;
	}

}
